package com.chain.BrotherExchange.data.model;

import java.io.Serializable;
import java.text.DecimalFormat;
import java.util.List;

public class LegalTenderDealList extends BaseResponseModel<LegalTenderDealList.DataBean> {

    public static class DataBean {
        /**
         * page : 1
         * page_num : 10
         * total : 6
         * list : [{"id":47,"uid":100087,"price":6.7,"num":100,"min_limit":100,"max_limit":1000,"pays":"2,3,2,3","created_time":"2018-11-08 19:19:19","updated_time":"2018-11-08 19:19:19","user_name":"18775573024","user_face":"https://sdun.oss-cn-shenzhen.aliyuncs.com/b4272ce0a52e83a756573e61ea4c500e.jpeg","user_volume":11,"type_id":1,"token_id":1,"token_name":"USDT","premium":0,"states":1},{"id":32,"uid":100078,"price":6.7,"num":200,"min_limit":100,"max_limit":1000,"pays":"1,3,4","created_time":"2018-11-07 14:56:00","updated_time":"2018-11-07 14:56:00","user_name":"三个故事告诉","user_face":"https://sdun.oss-cn-shenzhen.aliyuncs.com/622aa6b8a08d87c5716abdccbf52e56f.jpeg","user_volume":3,"type_id":1,"token_id":1,"token_name":"USDT","premium":0,"states":1},{"id":28,"uid":100078,"price":6.7,"num":200,"min_limit":100,"max_limit":1000,"pays":"1,3,4","created_time":"2018-11-07 14:54:03","updated_time":"2018-11-07 14:54:03","user_name":"三个故事告诉","user_face":"https://sdun.oss-cn-shenzhen.aliyuncs.com/622aa6b8a08d87c5716abdccbf52e56f.jpeg","user_volume":3,"type_id":1,"token_id":1,"token_name":"USDT","premium":0,"states":1},{"id":25,"uid":100078,"price":6.7,"num":20,"min_limit":100,"max_limit":0,"pays":"1,4,1,4,1,4,1,4","created_time":"2018-11-07 13:47:04","updated_time":"2018-11-07 13:47:04","user_name":"三个故事告诉","user_face":"https://sdun.oss-cn-shenzhen.aliyuncs.com/622aa6b8a08d87c5716abdccbf52e56f.jpeg","user_volume":3,"type_id":1,"token_id":1,"token_name":"USDT","premium":0,"states":1},{"id":20,"uid":100039,"price":6.7,"num":200,"min_limit":1000,"max_limit":5000,"pays":"1,3","created_time":"2018-11-06 20:07:25","updated_time":"2018-11-06 20:07:25","user_name":"前指一算，我的币要涨","user_face":"https://sdun.oss-cn-shenzhen.aliyuncs.com/ce2ad1d5fdd7a66586b8f0ca35b208e7.png","user_volume":9,"type_id":1,"token_id":1,"token_name":"USDT","premium":0,"states":1},{"id":8,"uid":100036,"price":6.7,"num":10085.07,"min_limit":100,"max_limit":30000,"pays":"2","created_time":"2018-10-11 14:47:29","updated_time":"2018-11-06 19:30:00","user_name":"谢晖","user_face":"https://sdun.oss-cn-shenzhen.aliyuncs.com/82b9c5c1f9fa6c1df04ded703d684220.jpeg","user_volume":18,"type_id":1,"token_id":1,"token_name":"USDT","premium":0,"states":1}]
         */

        private int page;
        private int page_num;
        private int total;
        private List<ListBean> list;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPage_num() {
            return page_num;
        }

        public void setPage_num(int page_num) {
            this.page_num = page_num;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean implements Serializable {
            /**
             * id : 47
             * uid : 100087
             * price : 6.7
             * num : 100
             * min_limit : 100
             * max_limit : 1000
             * pays : 2,3,2,3
             * created_time : 2018-11-08 19:19:19
             * updated_time : 2018-11-08 19:19:19
             * user_name : 18775573024
             * user_face : https://sdun.oss-cn-shenzhen.aliyuncs.com/b4272ce0a52e83a756573e61ea4c500e.jpeg
             * user_volume : 11
             * type_id : 1
             * token_id : 1
             * token_name : USDT
             * premium : 0
             * states : 1
             */

            private int id;
            private int uid;
            private double price;
            private double num;
            private int min_limit;
            private int max_limit;
            private String pays;
            private String created_time;
            private String updated_time;
            private String user_name;
            private String user_face;
            private int user_volume;
            private int type_id;
            private int token_id;
            private String token_name;
            private double premium;
            private int states;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getUid() {
                return uid;
            }

            public void setUid(int uid) {
                this.uid = uid;
            }

            public double getPrice() {
                return price;
            }

            public String getPriceText() {
                DecimalFormat df = new DecimalFormat("#########.#########");
                return df.format(price);
            }

            public String getUserVolumeText() {
                DecimalFormat df = new DecimalFormat("#########.#########");
                return df.format(user_volume);
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public double getNum() {
                return num;
            }

            public String getNumText() {
                DecimalFormat df = new DecimalFormat("#########.#########");
                return df.format(num);
            }

            public void setNum(double num) {
                this.num = num;
            }

            public int getMin_limit() {
                return min_limit;
            }

            public String getMinLimitText(){
                DecimalFormat df = new DecimalFormat("#########.#########");
                return df.format(min_limit);
            }

            public String getMaxLimitText(){
                DecimalFormat df = new DecimalFormat("#########.#########");
                return df.format(max_limit);
            }

            public void setMin_limit(int min_limit) {
                this.min_limit = min_limit;
            }

            public int getMax_limit() {
                return max_limit;
            }

            public void setMax_limit(int max_limit) {
                this.max_limit = max_limit;
            }

            public String getPays() {
                return pays;
            }

            public void setPays(String pays) {
                this.pays = pays;
            }

            public String getCreated_time() {
                return created_time;
            }

            public void setCreated_time(String created_time) {
                this.created_time = created_time;
            }

            public String getUpdated_time() {
                return updated_time;
            }

            public void setUpdated_time(String updated_time) {
                this.updated_time = updated_time;
            }

            public String getUser_name() {
                return user_name;
            }

            public void setUser_name(String user_name) {
                this.user_name = user_name;
            }

            public String getUser_face() {
                return user_face;
            }

            public void setUser_face(String user_face) {
                this.user_face = user_face;
            }

            public int getUser_volume() {
                return user_volume;
            }

            public void setUser_volume(int user_volume) {
                this.user_volume = user_volume;
            }

            public int getType_id() {
                return type_id;
            }

            public void setType_id(int type_id) {
                this.type_id = type_id;
            }

            public int getToken_id() {
                return token_id;
            }

            public void setToken_id(int token_id) {
                this.token_id = token_id;
            }

            public String getToken_name() {
                return token_name;
            }

            public void setToken_name(String token_name) {
                this.token_name = token_name;
            }

            public double getPremium() {
                return premium;
            }

            public void setPremium(double premium) {
                this.premium = premium;
            }

            public int getStates() {
                return states;
            }

            public void setStates(int states) {
                this.states = states;
            }
        }
    }
}
